{include file="layout/header" title="清空数据" /}
{include file="layout/sidebar" /}
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            课程管理
            <small>清空数据</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 课程管理</a></li>
            <li class="active">清空数据</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">
        <script src="__PLUGIN__/layer/layer.js"></script>
        <link rel="stylesheet" href="__PLUGIN__/layer/skin/default/layer.css">
        <!-- Horizontal Form -->
        <div class="box box-info" style="width:90%;margin: 0 auto;">
            <div class="box-header with-border">
                <h3 class="box-title">数据参数</h3>
            </div>
            <!-- /.box-header -->
            <!-- form start -->
            <form id="form" class="form-horizontal" action="" method="post">
                <div class="box-body">              
                    <div class="form-group">
                        <label for="excelTable" class="col-sm-2 control-label">
                            清空数据无法返回，请谨慎操作！
                        </label>
                    </div>
                </div>
                <!-- /.box-body -->
                <div class="box-footer">
                    <input type="hidden" name="__token__" value="{$Request.token}" />
                    <a href="javascript:;" id="empty" class="btn btn-info pull-right">清空</a>
                </div>
                <!-- /.box-footer -->
            </form>
        </div>
    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->
<script type="text/javascript">
    //jQuery代码
    $(function(){
        //给查看按钮绑定点击事件
        $('#empty').on('click',function(){
            layer.confirm('您确定要清空学生课程数据？', {
                btn: ['确定','取消'] //按钮
            }, function(){
                    $('form').submit();                    
                }, function(){
                    layer.closeAll('dialog');
            });         
        });
    });
</script>
{include file="layout/footer" /}